import { MidwayConfig } from '@midwayjs/core';

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1656729859306_3022',
  koa: {
    port: 7001,
  },
  jwt: {
    secret: '123456', // fs.readFileSync('xxxxx.key')
    expiresIn: '2d', // https://github.com/vercel/ms
  },
  orm: {
    type: 'mysql',
    host: 'localhost',
    port: 3306,
    username: 'root',
    password: '123456',
    database: 'midway',
    synchronize: true,
    logging: false,
    entities: ['src/entity/*.ts'],
  },
} as MidwayConfig;
